package cn.z2huo.demo.mapper.user;

import cn.z2huo.demo.example.user.UserDOExample;
import cn.z2huo.demo.model.dataobject.user.UserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>该 Mapper 对应数据库表为 z2huo_user
 * <p>
 * 
 * @author z2huo
 * @date   2024-12-10
 */
@Mapper
public interface UserMapper {

    long countByExample(UserDOExample example);

    int deleteByExample(UserDOExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UserDO row);

    int insertSelective(UserDO row);

    List<UserDO> selectByExample(UserDOExample example);

    UserDO selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("row") UserDO row, @Param("example") UserDOExample example);

    int updateByExample(@Param("row") UserDO row, @Param("example") UserDOExample example);

    int updateByPrimaryKeySelective(UserDO row);

    int updateByPrimaryKey(UserDO row);
}